{extend name='table'}

{block name="button"}{/block}

{block name="content"}
<div class="think-box-shadow">
    {include file='fahuoshuyuan/index_search'}
    <table id="OplogTable" data-url="{:request()->url()}" data-target-search="form.form-search"></table>
</div>
{/block}
									
{block name='script'}
<script>
    $(function () {
        $('#OplogTable').layTable({
            even: true, height: 'full',
            sort: {field: 'id', type: 'desc'},
            cols: [[
                {checkbox: true},
                {field: 'id', title: '序号', width: 80, sort: true, align: 'center'},
                {field: 'order_no', title: '{:lang("发货单号")}'},
                {field: 'wdbh', title: '{:lang("接收编码")}'},
                {field: 'wd_name', title: '{:lang("接收名称")}' },
                {field: 'count', title: '{:lang("接收数量")}' },
                {field: 'custname', title: '{:lang("发货上级名称")}'},
                {field: 'custcode', title: '{:lang("发货上级编码")}'},
                {field: 'boxcode', title: '{:lang("箱码")}'},
                {field: 'sncode', title: '{:lang("罐码")}'},
                {field: 'product_size', title: '{:lang("规格")}'},
                {field: 'batch', title: '{:lang("批次")}'},
                {field: 'product_name', title: '{:lang("产品名称")}'},
                {field: 'is_send', title: '{:lang("是否在库")}'},
                {field: 'is_qianshou', title: '{:lang("是否签收")}'},
                {field: 'qs_time', title: '{:lang("签收日期")}'},
                {field: 'add_time', title: '{:lang("发货日期")}'}
            ]]
        });
    });
</script>

<script type="text/html" id="toolbar">
    <!--{if auth('select')}-->
    <a class="layui-btn layui-btn-sm" data-title="发货明细" data-width="1000px"  data-iframe='{:url("select")}?order_no={{d.order_no}}'>{:lang('发货明细')}</a>
    <!--{/if}-->
</script>


<script type="text/html" id="boxcode">
    <!--{if auth('select')}-->
    <a data-action='{:url("boxcode")}' data-value="id#{{d.id}}"  class="">{{d.boxcode}}</a>
    <!--{/if}-->
</script>

<script type="text/html" id="goodscode">
    <!--{if auth('select')}-->
    <a data-action='{:url("goodscode")}' data-value="id#{{d.id}}"  class="">{{d.goodscode}}</a>
    <!--{/if}-->
</script>


{/block}